﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TodoSuspensionWeb.Administrador
{
    public partial class Administrador : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String usuario = (string)(Session["usuario"]);
            lblUsuario.Text = usuario;
            
        }


        protected void Button4_Click(object sender, EventArgs e)
        {
            Response.Redirect("ofertaAdmin.aspx");
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            Response.Redirect("consultarUsuarios.aspx");
        }

        protected void Button7_Click(object sender, EventArgs e)
        {
            Response.Redirect("consultarOfertaClienteAdmin.aspx");
        }
        protected void Button8_Click(object sender, EventArgs e)
        {
            Response.Redirect("consultaRepuestoAdmin.aspx");
        }

        protected void cerrar_sesion(object sender, EventArgs e)
        {
            Session["usuario"] = null;
            Session["id_usuario"] = null;
            Session.Clear();

            Response.Redirect("../Inicio.aspx");
        }

    }
}